// 待办已办页面 api
import request from '@/utils/request'

// 查询待办事项列表
export function getTodoList(query) {
  return request({
    url: '/ruoyi-system/workflow/getTodoTasks',
    method: 'get',
    params: query,
  })
}

// 获取待办事项详情
export function getTodoItem(id) {
  return request({
    url: '' + id,
    method: 'get',
  })
}

// 流转记录
export function getTodoFlowRecord(params) {
  return request({
    url: '/ruoyi-system/workflow/getWorkflowTransitionLogs',
    method: 'get',
    params,
  })
}

// 查询已办事项列表
export function getDoneList(query) {
  return request({
    url: '/ruoyi-system/workflow/getDoneTasks',
    method: 'get',
    params: query,
  })
}
